#include <stdio.h>

int L[101] = {0};
int n = 0;

int main()
{
    scanf("%d", &n);
    for (int i = 0; i < n; ++i)
    {
        scanf("%d", L + i);

        int cnt = 0;
        for (int j = 0; j < i; ++j)
        {
            cnt += L[j] < L[i];
        }
        printf("%d ", cnt);
    }
    return 0;
}